{include file="public/header" /}
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">角色信息</li>
				<li>访问授权</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">角色名称</label>
						<div class="layui-input-block">
							<input type="text" name="RoleName" class="layui-input RoleName" lay-verify="required" placeholder="请输入角色名称" value="{$view.name}" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">角色描述</label>
						<div class="layui-input-block">
							<textarea name="RoleContent" placeholder="请输入角色描述" class="layui-textarea">{$view.introduce}</textarea>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">是否启用</label>
							<div class="layui-input-block">
								<input type="checkbox" name="show" class="isShow" title="启用" {eq name="$view.status" value="1"}checked{/eq} >
							</div>
						</div>
					</div>
				</div>
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-collapse">
						<!--
						<div class="layui-colla-item">
							<h2 class="layui-colla-title">内容管理</h2>
							<div class="layui-colla-content layui-show">
							
							  <div class="layui-collapse">
								<div class="layui-colla-item">
								  <h2 class="layui-colla-title">文章管理</h2>
								  <div class="layui-colla-content layui-show">
									<input type="checkbox" name="menu_ids" title="文章列表" lay-skin="primary" value="" >
								  </div>
								</div>
								
							  </div>
						</div>
						-->
						{$menu_strs}
					  </div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="role_id" class="" value="{$view.id}">
				<button class="layui-btn" lay-submit="" lay-filter="addRole">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="{$PUBLIC_STATIC_SRC.__ADMIN_JS__}/role/roleAdd.js"></script>
</body>
</html>